<%@page import="com.drerp.RH.Cargo"%>
<%@page import="com.drerp.RH.DAO.ColaboradorDAO"%>
<%@page import="com.drerp.RH.Colaborador"%>
<%@page import="com.drerp.RH.carreira.constantes.TiposRegraPlanoCarreira"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="StyleSheet" href="../styles.css" type="text/css" media=screen />

<title>Adicionar Colaborador</title>

</head>
<body>

<jsp:include page="/nav/header.jsp" />

<div class="body">
	
	<jsp:include page="/nav/menu.jsp" />
	
	<div class="center">
	
		<h1>Contratar Colaborador</h1>
	
		<form action="salvar.jsp" method="post">
			<div class="inner_center">
				<div class="title" style="width: 140px;">Dados Pessoais</div>
				
				<table style="border-width: 0px; margin: 30px; width: 70%;">
					<tr>
						<td>
							<label>Nome:</label><br />
							<input type="text" name="nome" style="width: 90%" />
						</td>
						<td>
							<label>Nome de usuário:</label><br />
							 <input type="text" name="username" />
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<label>Data de Nascimento:</label><br />
							<select name="dia_nascimento"> 
								<% for(int i = 1;i < 32; i++){ %>
									<option><%= i %></option>
								<% } %>
							</select> 
							<select name="mes_nascimento"> 
								<% for(int i = 1; i < 13; i++){ %>
									<option><%= i %></option>
								<% } %>
							</select> 
							<select name="ano_nascimento"> 
								<% for(int i = 2011; i > 1900; i--){ %>
									<option><%= i %></option>
								<% } %>
							</select> 
						</td>
					</tr>
					
					<tr>
						<td colspan="2">
							<label>Endere&ccedil;o:</label><br />
							<input type="text" name="endereco" style="width: 76%;" />
						</td>
					</tr>
					
					<tr>
						<td>
							<label>Tel. Residencial:</label><br />
							<input type="text" name="tel" />
						</td>
						<td>
							<label>Tel. Celular:</label><br />
							<input type="text" name="tel_cel" />
						</td>
					</tr>
					
					<tr>
						<td>
							<label>RG:</label><br />
							<input type="text" name="rg" />
						</td>
						<td>
							<label>CPF:</label><br />
							<input type="text" name="cpf" />
						</td>
					</tr>
					
					<tr>
						<td>
							<label>Carteira de trabalho:</label><br />
							<input type="text" name="ctps" />
						</td>
						<td></td>
					</tr>
				</table>
			</div>
			
			<div class="inner_center">
				<div class="title" style="width: 170px;">Dados Contratuais</div>
				
				<div style="margin: 30px;">
					<label>Data de Admissao:</label><br />
							<select name="dia_admissao"> 
								<% for(int i = 1;i < 32; i++){ %>
									<option><%= i %></option>
								<% } %>
							</select> 
							<select name="mes_admissao"> 
								<% for(int i = 1; i < 13; i++){ %>
									<option><%= i %></option>
								<% } %>
							</select> 
							<select name="ano_admissao"> 
								<% for(int i = 2012; i > 1900; i--){ %>
									<option><%= i %></option>
								<% } %>
							</select> 
					<label>Cargo:</label>
					<select name="cargo_id">
					<% for (Cargo cargo : Cargo.encontraTodosCargos()) { %>
						<option value="<%= cargo.getCargo_id() %>">
							<%= cargo.getNome() %>
						</option>		
					<% } %>
					</select>
				</div>
				
			</div>
			
			<br />
			<div style="float: right; margin: 10px 20px;">
				<input type="submit" class="button" value="Adicionar" />&nbsp;&nbsp;|&nbsp;&nbsp;<a href="lista.jsp">Voltar</a>
			</div>
			
		</form>
		
	</div>
</div>
</body>
</html>